package com.itc.dispatch.controller;
import com.itc.common.core.domain.R;
import com.itc.dispatch.domain.FlightOperationMonitoring;
import com.itc.dispatch.domain.dto.DisFlightSearchValueDto;
import com.itc.dispatch.domain.vo.DisFlightConfigVo;
import com.itc.dispatch.domain.vo.FieldVo;
import com.itc.dispatch.service.FlightOperationMonitoringService;
import com.itc.dispatch.service.impl.DisFlightTableConfigServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@CrossOrigin
@Api(value = "disFlightSelect", tags = "航班运行监控查询模块")
@RequestMapping("/flight/select")
public class DisFlightSelectController {

    @Autowired
    private FlightOperationMonitoringService flightOperationMonitoringService;

    @Autowired
    private DisFlightTableConfigServiceImpl disFlightTableConfigService;

      /**
     * 查询当前登录用户已应用信息
     * @return
     */
    @ApiOperation(value = "查询当前登录用户已应用信息")
    @GetMapping("/apply/detail")
    public R<DisFlightConfigVo> getApplyConfigDetail(){
        return disFlightTableConfigService.getApplyConfigDetail();
    }
    /**
     * 查询当前登录用户已保存信息
     * @return
     */
    @ApiOperation(value = "查询当前登录用户已保存信息")
    @GetMapping("/current/detail")
    public R<DisFlightConfigVo> getCurrentUserConfigDetail(){
        return disFlightTableConfigService.getCurrentUserConfigDetail();
    }
}
